DimenFluidDp

EN Utility object for handling SDP (Scalable Dp) dimensions from Java.

PT Objeto utilitário para manipulação de dimensões SDP (Scalable Dp) no Java.

Functions

Link copied to clipboard
fun fhdp(context: Context, value: Int): Float

EN Quick resolution for Screen Height (hdp). PT Resolução rápida para Altura da Tela (hdp).

Link copied to clipboard
fun fhdpa(context: Context, value: Int): Float
Link copied to clipboard
fun fhdpi(context: Context, value: Int): Float
Link copied to clipboard
fun fhdpia(context: Context, value: Int): Float
Link copied to clipboard
fun fhdpLw(context: Context, value: Int): Float

EN Quick resolution for Screen Height (hdp), but in landscape orientation it acts as Screen Width (wdp).

Link copied to clipboard
fun fhdpLwa(context: Context, value: Int): Float
Link copied to clipboard
fun fhdpLwi(context: Context, value: Int): Float
Link copied to clipboard
fun fhdpLwia(context: Context, value: Int): Float
Link copied to clipboard
fun fhdpMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Height (hdp) with UiModeType override.

Link copied to clipboard
fun fhdpPw(context: Context, value: Int): Float

EN Quick resolution for Screen Height (hdp), but in portrait orientation it acts as Screen Width (wdp).

Link copied to clipboard
fun fhdpPwa(context: Context, value: Int): Float
Link copied to clipboard
fun fhdpPwi(context: Context, value: Int): Float
Link copied to clipboard
fun fhdpPwia(context: Context, value: Int): Float
Link copied to clipboard
fun fhdpQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Height (hDP) conditional scaling.

Link copied to clipboard
fun fhdpRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.HEIGHT, orientation: Orientation = Orientation.LANDSCAPE, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Height (hdp) with rotation override.

Link copied to clipboard
fun fhdpScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Height (hDP) context conditional scaling.

Link copied to clipboard
fun fsdp(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp). PT Resolução rápida para Smallest Width (sdp).

Link copied to clipboard
fun fsdpa(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdpa) with aspect ratio. PT Resolução rápida para Smallest Width (sdpa) com proporção de tela.

Link copied to clipboard
fun fsdpi(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdpi) ignoring multi-windows. PT Resolução rápida para Smallest Width (sdpi) ignorando janelas múltiplas.

Link copied to clipboard
fun fsdpia(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdpia) ignoring multi-windows and with aspect ratio. PT Resolução rápida para Smallest Width (sdpia) ignorando janelas múltiplas e com proporção.

Link copied to clipboard
fun fsdpLh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in landscape orientation it acts as Screen Height (hdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação paisagem atua como Altura da Tela (hdp).

Link copied to clipboard
fun fsdpLha(context: Context, value: Int): Float
Link copied to clipboard
fun fsdpLhi(context: Context, value: Int): Float
Link copied to clipboard
fun fsdpLhia(context: Context, value: Int): Float
Link copied to clipboard
fun fsdpLw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in landscape orientation it acts as Screen Width (wdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação paisagem atua como Largura da Tela (wdp).

Link copied to clipboard
fun fsdpLwa(context: Context, value: Int): Float
Link copied to clipboard
fun fsdpLwi(context: Context, value: Int): Float
Link copied to clipboard
fun fsdpLwia(context: Context, value: Int): Float
Link copied to clipboard
fun fsdpMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Smallest Width (sdp) with UiModeType override.

Link copied to clipboard
fun fsdpPh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in portrait orientation it acts as Screen Height (hdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação retrato atua como Altura da Tela (hdp).

Link copied to clipboard
fun fsdpPha(context: Context, value: Int): Float
Link copied to clipboard
fun fsdpPhi(context: Context, value: Int): Float
Link copied to clipboard
fun fsdpPhia(context: Context, value: Int): Float
Link copied to clipboard
fun fsdpPw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in portrait orientation it acts as Screen Width (wdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação retrato atua como Largura da Tela (wdp).

Link copied to clipboard
fun fsdpPwa(context: Context, value: Int): Float
Link copied to clipboard
fun fsdpPwi(context: Context, value: Int): Float
Link copied to clipboard
fun fsdpPwia(context: Context, value: Int): Float
Link copied to clipboard
fun fsdpQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Smallest Width (swDP) conditional scaling.

Link copied to clipboard
fun fsdpRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.SMALL_WIDTH, orientation: Orientation = Orientation.LANDSCAPE, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Smallest Width (sdp) with rotation override.

Link copied to clipboard
fun fsdpScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Smallest Width (swDP) context conditional scaling.

Link copied to clipboard
fun fwdp(context: Context, value: Int): Float

EN Quick resolution for Screen Width (wdp). PT Resolução rápida para Largura da Tela (wdp).

Link copied to clipboard
fun fwdpa(context: Context, value: Int): Float
Link copied to clipboard
fun fwdpi(context: Context, value: Int): Float
Link copied to clipboard
fun fwdpia(context: Context, value: Int): Float
Link copied to clipboard
fun fwdpLh(context: Context, value: Int): Float

EN Quick resolution for Screen Width (wdp), but in landscape orientation it acts as Screen Height (hdp).

Link copied to clipboard
fun fwdpLha(context: Context, value: Int): Float
Link copied to clipboard
fun fwdpLhi(context: Context, value: Int): Float
Link copied to clipboard
fun fwdpLhia(context: Context, value: Int): Float
Link copied to clipboard
fun fwdpMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Width (wdp) with UiModeType override.

Link copied to clipboard
fun fwdpPh(context: Context, value: Int): Float

EN Quick resolution for Screen Width (wdp), but in portrait orientation it acts as Screen Height (hdp).

Link copied to clipboard
fun fwdpPha(context: Context, value: Int): Float
Link copied to clipboard
fun fwdpPhi(context: Context, value: Int): Float
Link copied to clipboard
fun fwdpPhia(context: Context, value: Int): Float
Link copied to clipboard
fun fwdpQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Width (wDP) conditional scaling.

Link copied to clipboard
fun fwdpRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.WIDTH, orientation: Orientation = Orientation.LANDSCAPE, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Width (wdp) with rotation override.

Link copied to clipboard
fun fwdpScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Width (wDP) context conditional scaling.

Link copied to clipboard
fun getDimensionInDp(context: Context, qualifier: DpQualifier, value: Int, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Generic DP scaling function for Java. PT Função de escala DP genérica para Java.

Link copied to clipboard
fun getDimensionInPx(context: Context, qualifier: DpQualifier, value: Int, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Generic scaling function for Java. PT Função de escala genérica para Java.

Link copied to clipboard
fun scaled(initialBaseValue: Float): DimenFluid

EN Starts the build chain for the custom dimension DimenFluid from a base Float.

fun scaled(initialBaseValue: Int): DimenFluid

EN Starts the build chain for the custom dimension DimenFluid from a base Int. PT Inicia a cadeia de construção para a dimensão customizada DimenFluid a partir de um Int base.

Link copied to clipboard

EN Eagerly initializes DimenCache (persistence / DataStore) so the first resolution on a hot path avoids lazy-init work. PT Inicializa o DimenCache antecipadamente para evitar custo lazy no primeiro uso.